package com.zenghus.factory.func.factory;

import com.zenghus.factory.func.Pay;

public class FactoryTest {
	public static void main(String[] args) {
		AbstractFactory bdfactory=new BaiDuFactory();
		Pay pay=bdfactory.getPay();
		System.out.println(pay.payname);
		
		AbstractFactory zfbfactory=new ZFBFactory();
		pay=zfbfactory.getPay();
		System.out.println(pay.payname);
	}
}
